package cn.edu.ujn.park.dao;

import java.math.BigDecimal;

public class Rate {
    private Integer rateId;

    private String vehicleType;

    private String spaceType;

    private BigDecimal ratePerHour;
    private Integer start;
    private Integer rows;

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    @Override
    public String toString() {
        return "Rate{" +
                "rateId=" + rateId +
                ", vehicleType='" + vehicleType + '\'' +
                ", spaceType='" + spaceType + '\'' +
                ", ratePerHour=" + ratePerHour +
                ", start=" + start +
                ", rows=" + rows +
                '}';
    }

    public Integer getRateId() {
        return rateId;
    }

    public void setRateId(Integer rateId) {
        this.rateId = rateId;
    }

    public String getVehicleType() {
        return vehicleType;
    }

    public void setVehicleType(String vehicleType) {
        this.vehicleType = vehicleType == null ? null : vehicleType.trim();
    }

    public String getSpaceType() {
        return spaceType;
    }

    public void setSpaceType(String spaceType) {
        this.spaceType = spaceType == null ? null : spaceType.trim();
    }

    public BigDecimal getRatePerHour() {
        return ratePerHour;
    }

    public void setRatePerHour(BigDecimal ratePerHour) {
        this.ratePerHour = ratePerHour;
    }
}